package model

import (
	"gorm.io/gorm"
	"rpc/global"
)

type VideoReleaseWeek3 struct {
	gorm.Model
	VideoTitle    string `gorm:"type:varchar(30);comment:视频标题;"`
	VideoSubTitle string `gorm:"type:varchar(30);comment:视频副标题;"`
	VideoAddress  string `gorm:"type:varchar(30);comment:视频播放地址;"`
	VideoViews    int64  `gorm:"type:varchar(30);comment:视频观看次数;"`
	VideoType     int64  `gorm:"type:varchar(30);comment:视频类型;"`
	VideoRegion   int64  `gorm:"type:varchar(30);comment:视频地区;"`
	VideoImage    string `gorm:"type:varchar(30);comment:视频图片;"`
}

// 视频发布
func (v *VideoReleaseWeek3) VideoPublish() {
	global.DB.Create(&v)
}
